package com.lphl.pet.activity;

import com.lphl.pet.R;
import com.lphl.pet.RoundProgressBar;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextView;

/**
 * 宠物的目标
 * @author Lgq
 *
 */
public class PetTargetActivity extends Activity implements OnClickListener {

	private TextView tv_save;
	private RoundProgressBar roundProgressBar_suport;
	private RoundProgressBar roundProgressBar_reset;
	private ImageView iv_back;
	private TextView tv_suport;
	private TextView tv_consume;
	private TextView tv_rest_time;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.activity_pet_target);
		
		initView();
		
	}

	private void initView() {
		tv_save = (TextView) findViewById(R.id.tv_save);
		iv_back = (ImageView) findViewById(R.id.iv_back);
		tv_suport = (TextView) findViewById(R.id.tv_suport);  // �˶�ʱ��
		tv_consume = (TextView) findViewById(R.id.tv_consume); // ���900��·��
		tv_rest_time = (TextView) findViewById(R.id.tv_rest_time); // ��Ϣʱ��
		
		roundProgressBar_suport = (RoundProgressBar) findViewById(R.id.roundProgressBar_suport);
		roundProgressBar_reset = (RoundProgressBar) findViewById(R.id.roundProgressBar_reset);
		tv_save.setOnClickListener(this);
		iv_back.setOnClickListener(this);
		roundProgressBar_suport.setProgress(80);
		roundProgressBar_reset.setProgress(80);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.iv_back:
			this.finish();
			break;
			
		case R.id.tv_save:
			//TODO 保存
			
			break;

		default:
			break;
		}
	}
}
